import axios from "axios"
import { api_urls } from "./urls"

export const provider_api = {
    deleteProvider(id) {
        return axios.post(api_urls.provider.delete, { id: id })
    },
    pageProvider(providerReq) {
        return axios.post(api_urls.provider.page, providerReq)
    },
    updateProvider(provider) {
        return axios.post(api_urls.provider.update, provider)
    },
    createProvider(provider) {
        return axios.post(api_urls.provider.create, { ...provider, id: 0 })
    }
}